#ifndef HTTPSERVER_H
#define HTTPSERVER_H

#include <QObject>
#include <QtNetwork>


class httpServer : public QObject
{
    Q_OBJECT
public:
    QString ServerName;
    int ServerPort;
    // Network Part
    QTcpServer* tcpServer;
    QTcpSocket* tcpSocket;
public:
    httpServer();

signals:
    void newConnection();
public slots:
    bool startServer();
    bool Connect();
    bool SendSite(QString str);
    bool Disconnect();
};

#endif // HTTPSERVER_H
